.class Lcom/waiqin365/lightapp/chexiao/q;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/chexiao/CXDFFYActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/q;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const v5, 0x7f08013b

    const/4 v4, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/q;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/chexiao/CXDFFYActivity;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFFYActivity;->dismissProgressDialog()V

    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    :pswitch_0
    goto :goto_0

    :pswitch_1
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/chexiao/b/a/ao;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/b/a/ao;->b()Z

    move-result v2

    if-eqz v2, :cond_1

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/ao;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFFYActivity;->c(Lcom/waiqin365/lightapp/chexiao/CXDFFYActivity;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew;

    move-result-object v0

    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/ao;->d:Ljava/util/List;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew;->setValueItems(Ljava/util/List;)V

    goto :goto_0

    :cond_1
    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/ao;->c:Ljava/lang/String;

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/chexiao/CXDFFYActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_2
    invoke-static {v0, v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :pswitch_2
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/chexiao/b/a/bk;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/b/a/bk;->b()Z

    move-result v2

    if-eqz v2, :cond_4

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bk;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFFYActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string/jumbo v3, "isSeniorVisit"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    if-eqz v2, :cond_3

    new-instance v2, Ljava/util/HashMap;

    invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v3, "type"

    sget-object v4, Lcom/fiberhome/gaea/client/a/e;->k:Lcom/fiberhome/gaea/client/a/e;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    const-class v4, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesProcessSelectActivity;

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v4, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordDetailActivity;

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v4, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v4, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v4

    const-string/jumbo v5, "reinit_activity"

    invoke-virtual {v4, v5, v2, v3}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    :cond_3
    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v2

    const-string/jumbo v3, "close_activity"

    const/4 v4, 0x0

    const-class v5, Lcom/waiqin365/lightapp/order/OrderCartActivity;

    invoke-virtual {v2, v3, v4, v5}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/waiqin365/lightapp/chexiao/CXDFFYDetailActivity;

    invoke-direct {v2, v0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v3, "id"

    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bk;->d:Ljava/lang/String;

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXDFFYActivity;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFFYActivity;->finish()V

    goto/16 :goto_0

    :cond_4
    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bk;->c:Ljava/lang/String;

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_5

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/chexiao/CXDFFYActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_5
    invoke-static {v0, v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1a
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
